<#-- 计算主键数量，用于判断是单主键还是联合主键 -->
<#assign primaryKeyCount = 0>
<#if table?? && table.fields??>
<#list table.fields as field>
    <#if field.keyFlag?? && field.keyFlag>
        <#assign primaryKeyCount = primaryKeyCount + 1>
    </#if>
</#list>
</#if>

<#-- 仅为单主键表生成批量删除请求类 -->
<#if primaryKeyCount == 1 || !(table?? && table.fields??)>
package ${packageEntity}.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
<#assign hasLocalDateTime = false>
<#assign hasLocalDate = false>
<#assign hasDate = false>
<#if table?? && table.fields??>
    <#list table.fields as field>
        <#if field.propertyType?? && field.propertyType == 'LocalDateTime'>
            <#assign hasLocalDateTime = true>
        </#if>
        <#if field.propertyType?? && field.propertyType == 'LocalDate'>
            <#assign hasLocalDate = true>
        </#if>
        <#if field.propertyType?? && field.propertyType == 'Date'>
            <#assign hasDate = true>
        </#if>
    </#list>
</#if>
<#if hasLocalDateTime>
import java.time.LocalDateTime;
</#if>
<#if hasLocalDate>
import java.time.LocalDate;
</#if>
<#if hasDate>
import java.util.Date;
</#if>
import java.util.List;

/**
 * ${table.comment!} 批量删除请求
 *
 * @author ${author}
 * @since ${date}
 */
@Data
@ApiModel(value = "${entity}批量删除请求入参")
public class BatchDelete${entity}Req {
<#if table?? && table.fields??>
<#list table.fields as field>
<#if field.propertyName?? && field.keyFlag?? && field.keyFlag>
    /**
     * ${field.comment!''}列表
     */
    @ApiModelProperty("${field.comment!''}列表")
    private List<${field.propertyType}> ${field.propertyName}s;
</#if>
</#list>
<#else>
    /**
     * ID列表
     */
    @ApiModelProperty("ID列表")
    private List<Long> ids;
</#if>
}
</#if>